package com.app.common.adapter

import android.content.Context
import android.view.LayoutInflater
import androidx.recyclerview.widget.RecyclerView


/**
 *@创建人 周文东
 *@创建时间 2019/11/3
 *@描述
 */
abstract class BaseRecyclerViewAdapter<T, H : RecyclerView.ViewHolder>(protected val data: List<T>,protected val context: Context) : RecyclerView.Adapter<H>() {

    protected val inflater : LayoutInflater = LayoutInflater.from(context)

    override fun getItemCount(): Int {
        return data.size
    }

}